#! /bin/bash
token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidXNlcjEiLCJhY2NvdW50IjoiMTcxMTIzNDU2NzgiLCJwYXNzd29yZCI6IiQyYiQxMCRKSVZmOXdVT0x2OWI5UW44OE8yVFZ1bnd3YUpYS0RETi4wR1dpODZlTFYwMWljYTB0UTgvQyIsInBob25lIjpudWxsLCJpZGVudGl0eSI6InVzZXIiLCJpYXQiOjE3MDU1OTc5OTMsImV4cCI6MTcwNjQ2MTk5M30.PGiVsYrH-2mOs9LXjXEYH5LAqFauscR5cZlO1bcO7UM
api='api/login'
api='api/register'

user='{
  "user": {
    "name":"h",
    "password":"h",
    "account":"17412345678"
  }
}'

# curl -X POST localhost:3001/${api} \
# -H "Content-Type: application/json" \
# -H "Authorization: Bearer ${token}" \
# -d "$user"

#
api='getData?type=tableNames'
curl -X GET localhost:3001/${api} \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \
